package com.example.teesystem.mapper;

import com.example.teesystem.entity.IssueFeedback;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
* @author 12510
* @description 针对表【t_issue_feedback】的数据库操作Mapper
* @createDate 2022-03-31 16:24:34
* @Entity com.example.teesystem.entity.IssueFeedback
*/
@Mapper
public interface IssueFeedbackMapper extends BaseMapper<IssueFeedback> {
    @Update("update t_issue_feedback set is_handle = 1,handler_id = #{uid} where id = #{id}")
    void handleFeedback(int uid,int id);

    @Select("select * from t_issue_feedback where is_handle = #{isHandle} and course_id = #{courseId}")
    List<IssueFeedback> getIssueFeedbackList(int isHandle,int courseId);
}




